﻿using System.Collections.Generic;

namespace PhysicsControlModule.Models
{
    public class AdmIntro
    {
        public int LabworkId { get; set; }
        public string LabworkTitle { get; set; }
        public string OwnerName { get; set; }
        public int AdmissionQuestionsCount { get; set; }
        public int ControlQuestionsCount { get; set; }
    }

    public class AdmQuestionModel : AdmQuestion
    {
        // Id
        // Content
        public List<AdmAnswer> Answers { get; set; }
        public int SelectedAnswer { get; set; }
    }

    public class AdmResultModel
    {
        public int LabworkId { get; set; }
        public string LabworkTitle { get; set; }
        public int TotalCount { get; set; }
        public int RightCount { get; set; }
    }

    public class WorkModel : Labwork
    {
        // Id
        // Title
        // Descr
        // OwnerId
        public int CountExperiments { get; set; }
        public string Owner { get; set; }
        public List<PeriphParamModel> PeriphParamModels { get; set; }
        public string Conclusion { get; set; }

        public WorkModel()
        {
            PeriphParamModels = new List<PeriphParamModel>();
        }
    }

    public class PeriphParamModel : PeriphParam
    {
        // Id
        // Name
        public int ExperIndex { get; set; }
        public float Value { get; set; }
    }

    public class CtrlIntroModel
    {
        public int LabworkId { get; set; }
        public string LabworkTitle { get; set; }
        public int QuestionCount { get; set; }
    }

    public class CtrlQuestionModel : CtrlQuestion
    {
        // Id
        // Content
        public string Answer { get; set; }
    }

    public class CtrlResultModel
    {
        public string LabworkTitle { get; set; }
        public int AdmQuestTotalCount { get; set; }
        public int AdmQuestRightCount { get; set; }
        public int CtrlQuestTotalCount { get; set; }
        public int CtrlQuestAnsweredCount { get; set; }
    }
}